.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.image-container {  
  display: flex; 
  width: 100%; /* 设置图片容器宽度 */  
  height: 100%; /* 设置图片容器高度 */  
  justify-items: center;
  justify-content: space-between;
}  

#car1 {
  animation: moveRight 10s ease-in-out infinite;  
}
#car2 {
  animation: moveLeft 10s ease-in-out infinite;  
}
  
@keyframes moveRight {  
  0% {  
    transform: translateX(0);  
  }  

  100% {  
    transform: translateX(235px); 
  }
}

@keyframes moveLeft {  
  0% {  
    transform: scaleX(-1) translateX(0);  
  }  

  100% { 
    transform: scaleX(-1) translateX(235px);
  }
}
  

